<?php
/**
 * 接口公共配置
 *
 */
return array(
    /*---------------------------------------------------------------------------------------------------------------------------------------------------------------------
    * 积分增加规则
    * ------------------------------------------------------------------------------------------------------------------------------------------------------------------*/
    'COIN_RULE'=>array(
        'video' => 30, //已做
        'voice' => 20, //已做
        'image' => 10, //已做
        'zhuanfa' => 10, //已做
        'zhuanfa_times_limit' => 3, //超过此限制次数每次分享只能获得一个乾坤币 已做  
        'signed' => 30,                     //已做
        'serial_signed' => 15, //连续签到  //已做
    ),
    'POINT_RULE'=>array(
        'video' => 1, //最热 英语角视频  //已做
        'voice' => 1,  //最热 英语角音频  //已做
        'image' => 1,  //最热             //已做
    ),



    /*---------------------------------------------------------------------------------------------------------------------------------------------------------------------
    * 加载自定义的动态配置文件(LOAD_EXT_CONFIG), 加载自定义外部文件(LOAD_EXT_FILE)
    * ------------------------------------------------------------------------------------------------------------------------------------------------------------------*/
    'LOAD_EXT_FILE' => '',  // 加载路径$path/Common/xxxx.php
//    'LOAD_EXT_CONFIG' => 'msg_code_config', // 加载路径$path/Conf/xxxx.php 暂时不用这种方式，直接用include

    /*---------------------------------------------------------------------------------------------------------------------------------------------------------------------
    * 基础配置
    * ------------------------------------------------------------------------------------------------------------------------------------------------------------------*/
    'WKY_KEY' => 'WKY_5',                    //安全密钥（加密key）
    'ApiSiteUrl' => 'http://localhost/xiuliqiankuan', //接口域名（接口模块已经设为默认，）
    'DEFAULT_USER_IMG_PATH'   =>  'circle_avatar1.png', //默认头像文件路径
    'UPLOAD_IMG_PATH'   =>  '/Uploads/', //上传图片路径 （head，radio，image，video）


    /*---------------------------------------------------------------------------------------------------------------------------------------------------------------------
    * URL配置
    * ------------------------------------------------------------------------------------------------------------------------------------------------------------------*/
    'URL_MODEL'            => 0,        // 0-普通模式：也就是传统的get传参方式来指 ,适合接口开发的模式 m=模块&c=控制器&a=方法&params=其他参数
    'DEFAULT_CONTROLLER' =>  'Index', // 默认控制器名称
    'DEFAULT_ACTION'      =>  'index', // 默认操作名称

    /*---------------------------------------------------------------------------------------------------------------------------------------------------------------------
    * 支付方式
    * ------------------------------------------------------------------------------------------------------------------------------------------------------------------*/
    'PAY_STATUS'   => array(
        'CYH_WAIT_PAY'  => 'CYH_WAIT_PAY', //等待支付
        'CYH_PAY_W_UP'  => 'CYH_PAY_W_UP', //APP端回调支付成功，等待支付宝回调响应
        'CYH_PAY_OK'    => 'CYH_PAY_OK', //支付完成
    ),
    'PAY_TYPE'   => array(
        'ALIPAY' => '支付宝',
        'SELF'    => '余额支付',
        'WEIXIN'  => '微信支付',
    ),

    /*---------------------------------------------------------------------------------------------------------------------------------------------------------------------
    * 扩展
    * ------------------------------------------------------------------------------------------------------------------------------------------------------------------*/
    //单访问的控制器或是方法不存在跳转
    // 'TMPL_EXCEPTION_FILE' => './404.html',

);